package edu.guet.cn.blogbasics.service.impl;

import edu.guet.cn.blogbasics.entity.UserRole;
import edu.guet.cn.blogbasics.entity.Users;
import edu.guet.cn.blogbasics.mapper.UserRoleMapper;
import edu.guet.cn.blogbasics.service.UserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hejianding
 * @since 2021-04-02
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {
    @Autowired
    UserRoleMapper userRoleMapper;

    @Override
    public void save(String userName, String roleName) {
        userRoleMapper.save(userName,roleName);
    }

}
